<?php


namespace app\zmt\model;


use think\Model;

class goodsModel extends Model
{
    protected $name = 'goods';

    public function cate(){
        return $this->hasOne(goodsCateModel::class,'goods_id','id');
    }
    public function getChartAttr($value){
        return explode(',',$value);
    }
}